package cc.lj.internal.mobilepay.infrastructure.repository;

import cc.lj.internal.core.exception.ServiceException;
import cc.lj.internal.mobilepay.domain.repository.ICiticLogRepository;
import cc.lj.internal.mobilepay.infrastructure.excepion.MobilepayExceptionEnum;
import cc.lj.internal.mobilepay.infrastructure.po.CiticLogPO;
import cc.lj.internal.mobilepay.infrastructure.repository.mysql.CiticLogMysqlRespository;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * 中信请求响应日志表　仓储实现
 * @author liangxifeng
 * @date 2022/11/20 17:17
 */

@Repository("citicLogResponsitory")
public class CiticLogResponsitory implements ICiticLogRepository {
    @Resource(name="citicLogMysqlRespository")
    private CiticLogMysqlRespository repository;
    @Override
    public Integer insert(CiticLogPO entityPO) {
        return repository.insert(entityPO);
    }

    @Override
    public Integer updateById(CiticLogPO entityPO) {
        Integer res = repository.updateById(entityPO);
        return res;
    }

    @Override
    public CiticLogPO getById(Integer id) {
        return repository.getById(id);
    }

    @Override
    public List<CiticLogPO> getList(CiticLogPO entityPO) {
        return repository.getList(entityPO);
    }

    @Override
    public Integer deleteById(Integer id) {
        return repository.deleteById(id);
    }
}
